package designPattern.builder;

import designPattern.builder.Bobject.Magazine;
import designPattern.builder.Bobject.Media;
import designPattern.builder.Sobject.MediaItem;

public class MagazineBuilder extends MediaBuilder {
	private Magazine m;
	public void buildBase(){
		System.out.println("building magazine framework");
		m=new Magazine();
	}
	public void addMediaItem(MediaItem article){
		System.out.println("Adding article"+article);
		m.add(article);
	}
	public Media getFinishedMedia(){
		return m;
	}
}
